package com.ls.fw.search.solrj.form.collection;

import org.hibernate.validator.constraints.NotBlank;

import com.ls.fw.search.solrj.bean.Property;
import com.ls.fw.search.solrj.bean.Split;

/**
 * @author ls
 *
 */
public class MigrateForm {
	@NotBlank
	protected String action = "MIGRATE";
	/**
	 * urlScheme and autoAddReplicas and location
	 */
	@NotBlank
	protected String collection;
	private String async;
	@NotBlank
	private Target target;
	private Property property;
	@NotBlank
	private Split split;
	private Rorward forward;

	public static class Rorward {
		private int timeout;

		public int getTimeout() {
			return timeout;
		}

		public void setTimeout(int timeout) {
			this.timeout = timeout;
		}
	}

	public static class Target {
		private String collection;

		public String getCollection() {
			return collection;
		}

		public void setCollection(String collection) {
			this.collection = collection;
		}

	}

	public String getAction() {
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}

	public String getCollection() {
		return collection;
	}

	public void setCollection(String collection) {
		this.collection = collection;
	}

	public String getAsync() {
		return async;
	}

	public void setAsync(String async) {
		this.async = async;
	}

	public Target getTarget() {
		return target;
	}

	public void setTarget(Target target) {
		this.target = target;
	}

	public Property getProperty() {
		return property;
	}

	public void setProperty(Property property) {
		this.property = property;
	}

	public Split getSplit() {
		return split;
	}

	public void setSplit(Split split) {
		this.split = split;
	}

	public Rorward getForward() {
		return forward;
	}

	public void setForward(Rorward forward) {
		this.forward = forward;
	}

}
